package cz.mzk.funnylib.dao.mockup;

import cz.mzk.funnylib.dao.LibraryDAO;
import cz.mzk.funnylib.entities.Library;
import java.util.List;

/**
 *
 * @author xrosecky
 */
public class LibraryDAOMockup implements LibraryDAO {

    private Library library;

    public LibraryDAOMockup() {
        library = new Library();
        library.setId(Long.valueOf(123));
        library.setLat("49.208724");
        library.setLon("16.593644");
        library.setName("MZK");
        library.setCity("Brno");
        library.setPostcode("123456");
        library.setShortcut("MZK");
        library.setStreet("Kounicova 123");
        library.setWeb("http://www.mzk.cz");
    }

    public Library getLibraryById(Long id) {
        return library;
    }

    public void persist(Library library) {
    }

    public List<Library> getLibraries() {
        throw new UnsupportedOperationException("Not supported yet.");
    }



}
